# closeButton object example

The following example shows the closeButton object:

`<closeButton name="CloseDisplayButton2" height="100" width="142" left="400" top="170" visible="true" wallpaper="false" isReferenceObject="false" audio="true" backColor="navy" backStyle="solid" borderStyle="raised" borderUsesBackColor="true" borderWidth="4" description="CLOSE DIS PLAY" highlightColor="lime" borderColor="navy" patternColor="#FFFF80" patternStyle="ovals" horizontalMargin="0" verticalMargin="0" shape="rectangle" touch="true" blink="false" closeValue="0" writeOnClose="false" keyAssignment="F2">`

`<caption fontFamily="Braggadocio" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="CLOSE DIS PLAY" color="#A0A0A4" backColor="navy" backStyle="solid" alignment="topCenter" wordWrap="true" blink="false" />`

`<imageSettings imageName="Home" alignment="bottomCenter" backStyle="solid" color="#784000" backColor="magenta" scaled="false" blink="false" />`

`<animations>`

`<animateVisibility expression="If TestTag4 > 10 Then 1 Else 0" expressionTrueState="visible" />`

`</animations>`

`<connections>`

`<connection name="Value" expression="TagS2" />`

`</connections>`

`</closeButton>`

## See also

Display navigation objects: closeButton object

closeButton object attributes and elements